package com.baizhi.controller;

import com.baizhi.entity.Area;
import com.baizhi.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("area")
public class AreaController {
    @Autowired
    private AreaService areaService;
    @RequestMapping("show")
    public List<Area> show(String cityid){
        return areaService.selectByCityid(cityid);
    }
}
